package org.fengdi.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.fengdi.order.entity.Order;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    @Insert("INSERT INTO `order` (user_id, commodity_code, count, money) VALUES (#{userId}, #{commodityCode}, #{count}, #{money})")
    void insertOrder(Order order);
}
